<?php
class Product extends CI_Controller{
	
	public function index(){
		
		$default_cat = $this->session->userdata('default_cat');
		$lang = $this->lang->lang();
		$data['categories'] = $this->Category_model->getCategoryByDefaultCatId($default_cat,$lang);
		
		$this->template->write_view('left','front_end/layout/left',NULL,TRUE);
		$this->template->write_view('content','front_end/product/index',$data,TRUE);
		$this->template->load();
	}
	
	public function detail($id){
		$this->template->write_view('left','front_end/layout/left',NULL,TRUE);
		$this->template->write_view('content','front_end/product/detail',NULL,TRUE);
		$this->template->load();
	}
}